package org.jeecg.modules.tls.oes.subject.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.jeecg.modules.tls.oes.subject.entity.OesSubject;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Description: oes_subject
 * @Author: jeecg-boot
 * @Date:   2022-11-28
 * @Version: V1.0
 */
public interface IOesSubjectService extends IService<OesSubject> {
    //学科分页并查询
    IPage<OesSubject> getSubjectPage(Integer level, Integer pageIndex, Integer pageSize);

    //学科修改分页
    Boolean modifySubject(OesSubject subject);

    /**
     *
     * @param id
     * @return
     */
    Boolean deleteSubject(Integer id);

    //用户添加
    Boolean addSubject(OesSubject subject);

    Integer getSubjectLevel(Integer id);

    OesSubject getSubjectById(Integer id);

    //通过学生年级返回该年级的学科
//    List<TSubject> getSubjects();

    List<OesSubject> getSubjectsByLevel(Integer level);
}
